package com.rockcent.model;

import android.text.TextUtils;

import com.rockcent.model.constant.CustomerCouponCategory;
import com.rockcent.model.constant.CustomerCouponState;
import com.rockcent.model.constant.CustomerCouponType;
import com.rockcent.model.constant.FavoriteState;

import java.io.Serializable;

/**
 * 描述信息
 *
 * @author keegan
 * @date 15/8/5
 */
public class CustomerCouponBO implements Serializable {
    private static final long serialVersionUID = -4797292631517298343L;

    private int id; //主键
    private String name; //票券名称
    private String number; //票券编码
    private CustomerCouponCategory category; //票券类别。B：B端的券；C：C端的券
    private String logoUrl; //票券LOGO图
    private String picUrl; //票券介绍图片,多个以;分隔
    private long createTime; //创建时间
    private long updateTime; //修改时间
    private String qrCodeUrl; //票券对应的微信二维码URL
    private String uuid; //UUID
    private int customerId; //发券客户Id.为customerId
    private String introduce; //票券介绍
    private int issueCount; //发行数量
    private int saleCount; //卖出数量
    private int lockedCount; //锁定数量
    private double price; //发行价格
    private CustomerCouponState state; //票券状态。C01：出售中；C02：已下架；C03：已删除
    private CustomerCouponType type; //票券类型。0：商品；1：服务
    private String extend1; //学校名称
    private String customerName;
    private String nickName;
    private String phone;
    private String headUrl;
    private FavoriteState isFavorite;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public CustomerCouponCategory getCategory() {
        return category;
    }

    public void setCategory(CustomerCouponCategory category) {
        this.category = category;
    }

    public String getLogoUrl() {
        if(TextUtils.isEmpty(logoUrl)){
            logoUrl = "";
        }
        return logoUrl;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl;
    }

    public String getPicUrl() {
        if(TextUtils.isEmpty(picUrl)) {
           picUrl = "";
        }
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    public String getQrCodeUrl() {
        return qrCodeUrl;
    }

    public void setQrCodeUrl(String qrCodeUrl) {
        this.qrCodeUrl = qrCodeUrl;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public int getCustomerId() {
        return customerId;
    }

    public void setCustomerId(int customerId) {
        this.customerId = customerId;
    }

    public String getIntroduce() {
        if(TextUtils.isEmpty(introduce)){
            introduce = "";
        }
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public int getIssueCount() {
        return issueCount;
    }

    public void setIssueCount(int issueCount) {
        this.issueCount = issueCount;
    }

    public int getSaleCount() {
        return saleCount;
    }

    public void setSaleCount(int saleCount) {
        this.saleCount = saleCount;
    }

    public int getLockedCount() {
        return lockedCount;
    }

    public void setLockedCount(int lockedCount) {
        this.lockedCount = lockedCount;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public CustomerCouponState getState() {
        return state;
    }

    public void setState(CustomerCouponState state) {
        this.state = state;
    }

    public CustomerCouponType getType() {
        return type;
    }

    public void setType(CustomerCouponType type) {
        this.type = type;
    }

    public String getExtend1() {
        return extend1;
    }

    public void setExtend1(String extend1) {
        this.extend1 = extend1;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getHeadUrl() {
        return headUrl;
    }

    public void setHeadUrl(String headUrl) {
        this.headUrl = headUrl;
    }

    public FavoriteState getIsFavorite() {
        return isFavorite;
    }

    public void setIsFavorite(FavoriteState isFavorite) {
        this.isFavorite = isFavorite;
    }
}
